import request from '@/utils/request'

//群分类列表/详情
export function getCategoryList(query) {
  return request({
    url: `/group-category${query.category_id ? '/' + query.category_id : ''}`,
    method: 'get',
    params: query
  })
}

//群分类新增
export function CategoryAdd(data) {
  return request({
    url: '/group-category',
    method: 'post',
    data
  })
}

//群分类修改
export function CategoryEdit(category_id, data) {
  return request({
    url: `/group-category/${category_id}`,
    method: 'put',
    data
  })
}





